package com.design_mode;

/**
 * Created by dustaple on 8/4/14.
 */
public class FacadePattern {
    public static void main(String[] args) {
        Facade facade = new Facade();
        facade.option();
    }
}

class PutElephantIntoBridge{
    public void openBraidgeGate(){
        System.out.println("冰箱门已打开.");
    }
    public void putElephantIntoBridge(){
        System.out.println("把大象放入冰箱.");
    }
    public void closeBraidgeGate(){
        System.out.println("冰箱门已关闭.");
    }
}
class Facade{
    PutElephantIntoBridge putElephantIntoBridge = new PutElephantIntoBridge();

    public void option(){
        putElephantIntoBridge.openBraidgeGate();
        putElephantIntoBridge.putElephantIntoBridge();
        putElephantIntoBridge.closeBraidgeGate();
    }
}